package com.xxx.corejava.day1104;

import java.util.Scanner;

public class Test1 {

    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);

        int n=sc.nextInt();

        for (int i = -n; i <= n ; i++) {
            for (int j = 0; j < Math.abs(i); j++) {
                System.out.print(" ");
            }

            for (int j = 0; j < (n-Math.abs(i))*2+1; j++) {
                System.out.print("*");
            }
            
            System.out.println();
        }

        System.out.println("------------------------------------------");


        for (int i = -n; i <= n ; i++) {
            for (int j = 0; j < Math.abs(i); j++) {
                System.out.print(" ");
            }

            for (int j = -(n-Math.abs(i)); j <= (n-Math.abs(i)); j++) {
                System.out.print("*");
            }

            System.out.println();
        }

        System.out.println("------------------------------------------");


        for (int i = -n; i <= n ; i++) {
            if(i==0){
                continue;
            }

            for (int j = 0; j < Math.abs(i)-1; j++) {
                System.out.print(" ");
            }

            for (int j = -(n-Math.abs(i)); j <= (n-Math.abs(i)); j++) {
                System.out.print("*");
            }

            System.out.println();
        }


    }
    
    
}
